package com.example.qy_hd_demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @ClassName DemoController
 * @Description
 * @Author zhangsw
 * @Date 2020/12/19 21:22
 * @Version 1.0
 */
@Controller("demoController2")
public class DemoController {

    private Logger logger = LoggerFactory.getLogger(getClass());

    @GetMapping("index")
    public String toIndex() {
        return "index";
    }

    @GetMapping("page/welcome-1.html")
    public String welcome_1() {
        return "page/welcome-1";
    }

    @GetMapping("page/user-setting.html")
    public String setting(String id) {
        System.err.println(id);
        logger.error("传入参数id=" + id);
        return "page/user-setting";
    }

    @GetMapping("page/welcome-2.html")
    public String welcome_2() {
        return "page/welcome-2";
    }

    @GetMapping("page/welcome-3.html")
    public String welcome_3() {
        return "page/welcome-3";
    }

    @GetMapping("page/menu.html")
    public String menu() {
        return "page/menu";
    }

    @GetMapping("page/setting.html")
    public String setting() {
        return "page/setting";
    }

    @GetMapping("page/table.html")
    public String table_html() {
        return "page/table";
    }

    @GetMapping("page/form.html")
    public String form_html() {
        return "page/form";
    }

    @GetMapping("page/form-step.html")
    public String form_step_html() {
        return "page/form-step";
    }

    @GetMapping("page/login-1.html")
    public String login_1() {
        return "page/login-1";
    }

    @GetMapping("page/login-2.html")
    public String login_2() {
        return "page/login-2";
    }

    @GetMapping("page/login-3.html")
    public String login_3() {
        return "page/login-3";
    }

    @GetMapping("page/404.html")
    public String p_404() {
        return "page/404";
    }

    @GetMapping("page/button.html")
    public String button() {
        return "page/button";
    }

    @GetMapping("page/layer.html")
    public String layer_1() {
        return "page/layer";
    }

    @GetMapping("page/icon.html")
    public String icon() {
        return "page/icon";
    }

    @GetMapping("page/icon-picker.html")
    public String picker() {
        return "page/icon-picker";
    }

    @GetMapping("page/color-select.html")
    public String color_select() {
        return "page/color-select";
    }

    @GetMapping("page/table-select.html")
    public String table_select() {
        return "page/table-select";
    }

    @GetMapping("page/upload.html")
    public String upload_1() {
        return "page/upload";
    }

    @GetMapping("page/editor.html")
    public String editor() {
        return "page/editor";
    }

    @GetMapping("page/area.html")
    public String area() {
        return "page/area";
    }

//    @GetMapping("page/button.html")
//    public String button_1() {
//        return "page/button";
//    }

    @GetMapping("page/form.html?v=1")
    public String form() {
        return "page/form";
    }

//    @GetMapping("page/error.html")
//    public String error() {
//        return "page/error";
//    }




    @GetMapping("api/init.json")
    @ResponseBody
    public String init() {
        return "{\n" +
                "  \"homeInfo\": {\n" +
                "    \"title\": \"首页\",\n" +
                "    \"href\": \"page/welcome-1.html?t=1\"\n" +
                "  },\n" +
                "  \"logoInfo\": {\n" +
                "    \"title\": \"LAYUI MINI\",\n" +
                "    \"image\": \"images/logo.png\",\n" +
                "    \"href\": \"\"\n" +
                "  },\n" +
                "  \"menuInfo\": [\n" +
                "    {\n" +
                "      \"title\": \"常规管理\",\n" +
                "      \"icon\": \"fa fa-address-book\",\n" +
                "      \"href\": \"\",\n" +
                "      \"target\": \"_self\",\n" +
                "      \"child\": [\n" +
                "        {\n" +
                "          \"title\": \"主页模板\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-home\",\n" +
                "          \"target\": \"_self\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"主页一\",\n" +
                "              \"href\": \"page/welcome-1.html\",\n" +
                "              \"icon\": \"fa fa-tachometer\",\n" +
                "              \"target\": \"_self\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"主页二\",\n" +
                "              \"href\": \"page/welcome-2.html\",\n" +
                "              \"icon\": \"fa fa-tachometer\",\n" +
                "              \"target\": \"_self\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"主页三\",\n" +
                "              \"href\": \"page/welcome-3.html\",\n" +
                "              \"icon\": \"fa fa-tachometer\",\n" +
                "              \"target\": \"_self\"\n" +
                "            }\n" +
                "          ]\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"菜单管理\",\n" +
                "          \"href\": \"page/menu.html\",\n" +
                "          \"icon\": \"fa fa-window-maximize\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"系统设置\",\n" +
                "          \"href\": \"page/setting.html\",\n" +
                "          \"icon\": \"fa fa-gears\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"表格示例\",\n" +
                "          \"href\": \"page/table.html\",\n" +
                "          \"icon\": \"fa fa-file-text\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"表单示例\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-calendar\",\n" +
                "          \"target\": \"_self\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"普通表单\",\n" +
                "              \"href\": \"page/form.html\",\n" +
                "              \"icon\": \"fa fa-list-alt\",\n" +
                "              \"target\": \"_self\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"分步表单\",\n" +
                "              \"href\": \"page/form-step.html\",\n" +
                "              \"icon\": \"fa fa-navicon\",\n" +
                "              \"target\": \"_self\"\n" +
                "            }\n" +
                "          ]\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"登录模板\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-flag-o\",\n" +
                "          \"target\": \"_self\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"登录-1\",\n" +
                "              \"href\": \"page/login-1.html\",\n" +
                "              \"icon\": \"fa fa-stumbleupon-circle\",\n" +
                "              \"target\": \"_blank\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"登录-2\",\n" +
                "              \"href\": \"page/login-2.html\",\n" +
                "              \"icon\": \"fa fa-viacoin\",\n" +
                "              \"target\": \"_blank\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"登录-3\",\n" +
                "              \"href\": \"page/login-3.html\",\n" +
                "              \"icon\": \"fa fa-tags\",\n" +
                "              \"target\": \"_blank\"\n" +
                "            }\n" +
                "          ]\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"异常页面\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-home\",\n" +
                "          \"target\": \"_self\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"404页面\",\n" +
                "              \"href\": \"page/404.html\",\n" +
                "              \"icon\": \"fa fa-hourglass-end\",\n" +
                "              \"target\": \"_self\"\n" +
                "            }\n" +
                "          ]\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"其它界面\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-snowflake-o\",\n" +
                "          \"target\": \"\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"按钮示例\",\n" +
                "              \"href\": \"page/button.html\",\n" +
                "              \"icon\": \"fa fa-snowflake-o\",\n" +
                "              \"target\": \"_self\"\n" +
                "            },\n" +
                "            {\n" +
                "              \"title\": \"弹出层\",\n" +
                "              \"href\": \"page/layer.html\",\n" +
                "              \"icon\": \"fa fa-shield\",\n" +
                "              \"target\": \"_self\"\n" +
                "            }\n" +
                "          ]\n" +
                "        }\n" +
                "      ]\n" +
                "    },\n" +
                "    {\n" +
                "      \"title\": \"组件管理\",\n" +
                "      \"icon\": \"fa fa-lemon-o\",\n" +
                "      \"href\": \"\",\n" +
                "      \"target\": \"_self\",\n" +
                "      \"child\": [\n" +
                "        {\n" +
                "          \"title\": \"图标列表\",\n" +
                "          \"href\": \"page/icon.html\",\n" +
                "          \"icon\": \"fa fa-dot-circle-o\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"图标选择\",\n" +
                "          \"href\": \"page/icon-picker.html\",\n" +
                "          \"icon\": \"fa fa-adn\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"颜色选择\",\n" +
                "          \"href\": \"page/color-select.html\",\n" +
                "          \"icon\": \"fa fa-dashboard\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"下拉选择\",\n" +
                "          \"href\": \"page/table-select.html\",\n" +
                "          \"icon\": \"fa fa-angle-double-down\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"文件上传\",\n" +
                "          \"href\": \"page/upload.html\",\n" +
                "          \"icon\": \"fa fa-arrow-up\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"富文本编辑器\",\n" +
                "          \"href\": \"page/editor.html\",\n" +
                "          \"icon\": \"fa fa-edit\",\n" +
                "          \"target\": \"_self\"\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"省市县区选择器\",\n" +
                "          \"href\": \"page/area.html\",\n" +
                "          \"icon\": \"fa fa-rocket\",\n" +
                "          \"target\": \"_self\"\n" +
                "        }\n" +
                "      ]\n" +
                "    },\n" +
                "    {\n" +
                "      \"title\": \"其它管理\",\n" +
                "      \"icon\": \"fa fa-slideshare\",\n" +
                "      \"href\": \"\",\n" +
                "      \"target\": \"_self\",\n" +
                "      \"child\": [\n" +
                "        {\n" +
                "          \"title\": \"多级菜单\",\n" +
                "          \"href\": \"\",\n" +
                "          \"icon\": \"fa fa-meetup\",\n" +
                "          \"target\": \"\",\n" +
                "          \"child\": [\n" +
                "            {\n" +
                "              \"title\": \"按钮1\",\n" +
                "              \"href\": \"page/button.html?v=1\",\n" +
                "              \"icon\": \"fa fa-calendar\",\n" +
                "              \"target\": \"_self\",\n" +
                "              \"child\": [\n" +
                "                {\n" +
                "                  \"title\": \"按钮2\",\n" +
                "                  \"href\": \"page/button.html?v=2\",\n" +
                "                  \"icon\": \"fa fa-snowflake-o\",\n" +
                "                  \"target\": \"_self\",\n" +
                "                  \"child\": [\n" +
                "                    {\n" +
                "                      \"title\": \"按钮3\",\n" +
                "                      \"href\": \"page/button.html?v=3\",\n" +
                "                      \"icon\": \"fa fa-snowflake-o\",\n" +
                "                      \"target\": \"_self\"\n" +
                "                    },\n" +
                "                    {\n" +
                "                      \"title\": \"表单4\",\n" +
                "                      \"href\": \"page/form.html?v=1\",\n" +
                "                      \"icon\": \"fa fa-calendar\",\n" +
                "                      \"target\": \"_self\"\n" +
                "                    }\n" +
                "                  ]\n" +
                "                }\n" +
                "              ]\n" +
                "            }\n" +
                "          ]\n" +
                "        },\n" +
                "        {\n" +
                "          \"title\": \"失效菜单\",\n" +
                "          \"href\": \"page/error.html\",\n" +
                "          \"icon\": \"fa fa-superpowers\",\n" +
                "          \"target\": \"_self\"\n" +
                "        }\n" +
                "      ]\n" +
                "    }\n" +
                "  ]\n" +
                "}";
    }

    @GetMapping("api/clear.json")
    @ResponseBody
    public String clear() {
        return "{\n" +
                "  \"code\": 1,\n" +
                "  \"msg\": \"服务端清理缓存成功\"\n" +
                "}";
    }

    @GetMapping("api/menus.json")
    @ResponseBody
    public String menus() {
        return "{\n" +
                "  \"code\": 0,\n" +
                "  \"msg\": \"\",\n" +
                "  \"count\": 19,\n" +
                "  \"data\": [\n" +
                "    {\n" +
                "      \"authorityId\": 1,\n" +
                "      \"authorityName\": \"系统管理\",\n" +
                "      \"orderNumber\": 1,\n" +
                "      \"menuUrl\": null,\n" +
                "      \"menuIcon\": \"layui-icon-set\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": null,\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 0,\n" +
                "      \"parentId\": -1\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 2,\n" +
                "      \"authorityName\": \"用户管理\",\n" +
                "      \"orderNumber\": 2,\n" +
                "      \"menuUrl\": \"system/user\",\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": null,\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 0,\n" +
                "      \"parentId\": 1\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 3,\n" +
                "      \"authorityName\": \"查询用户\",\n" +
                "      \"orderNumber\": 3,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/07/21 13:54:16\",\n" +
                "      \"authority\": \"user:view\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/21 13:54:16\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 2\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 4,\n" +
                "      \"authorityName\": \"添加用户\",\n" +
                "      \"orderNumber\": 4,\n" +
                "      \"menuUrl\": null,\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"user:add\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 2\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 5,\n" +
                "      \"authorityName\": \"修改用户\",\n" +
                "      \"orderNumber\": 5,\n" +
                "      \"menuUrl\": null,\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"user:edit\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 2\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 6,\n" +
                "      \"authorityName\": \"删除用户\",\n" +
                "      \"orderNumber\": 6,\n" +
                "      \"menuUrl\": null,\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"user:delete\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 2\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 7,\n" +
                "      \"authorityName\": \"角色管理\",\n" +
                "      \"orderNumber\": 7,\n" +
                "      \"menuUrl\": \"system/role\",\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": null,\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 0,\n" +
                "      \"parentId\": 1\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 8,\n" +
                "      \"authorityName\": \"查询角色\",\n" +
                "      \"orderNumber\": 8,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/07/21 13:54:59\",\n" +
                "      \"authority\": \"role:view\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/21 13:54:58\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 7\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 9,\n" +
                "      \"authorityName\": \"添加角色\",\n" +
                "      \"orderNumber\": 9,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"role:add\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 7\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 10,\n" +
                "      \"authorityName\": \"修改角色\",\n" +
                "      \"orderNumber\": 10,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"role:edit\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 7\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 11,\n" +
                "      \"authorityName\": \"删除角色\",\n" +
                "      \"orderNumber\": 11,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"role:delete\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 7\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 12,\n" +
                "      \"authorityName\": \"角色权限管理\",\n" +
                "      \"orderNumber\": 12,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"role:auth\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 15:27:18\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 7\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 13,\n" +
                "      \"authorityName\": \"权限管理\",\n" +
                "      \"orderNumber\": 13,\n" +
                "      \"menuUrl\": \"system/authorities\",\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": null,\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 15:45:13\",\n" +
                "      \"isMenu\": 0,\n" +
                "      \"parentId\": 1\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 14,\n" +
                "      \"authorityName\": \"查询权限\",\n" +
                "      \"orderNumber\": 14,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/07/21 13:55:57\",\n" +
                "      \"authority\": \"authorities:view\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/21 13:55:56\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 13\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 15,\n" +
                "      \"authorityName\": \"添加权限\",\n" +
                "      \"orderNumber\": 15,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"authorities:add\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 13\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 16,\n" +
                "      \"authorityName\": \"修改权限\",\n" +
                "      \"orderNumber\": 16,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"authority\": \"authorities:edit\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/13 09:13:42\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 13\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 17,\n" +
                "      \"authorityName\": \"删除权限\",\n" +
                "      \"orderNumber\": 17,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": \"authorities:delete\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 13\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 18,\n" +
                "      \"authorityName\": \"登录日志\",\n" +
                "      \"orderNumber\": 18,\n" +
                "      \"menuUrl\": \"system/loginRecord\",\n" +
                "      \"menuIcon\": null,\n" +
                "      \"createTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"authority\": null,\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/06/29 11:05:41\",\n" +
                "      \"isMenu\": 0,\n" +
                "      \"parentId\": 1\n" +
                "    },\n" +
                "    {\n" +
                "      \"authorityId\": 19,\n" +
                "      \"authorityName\": \"查询登录日志\",\n" +
                "      \"orderNumber\": 19,\n" +
                "      \"menuUrl\": \"\",\n" +
                "      \"menuIcon\": \"\",\n" +
                "      \"createTime\": \"2018/07/21 13:56:43\",\n" +
                "      \"authority\": \"loginRecord:view\",\n" +
                "      \"checked\": 0,\n" +
                "      \"updateTime\": \"2018/07/21 13:56:43\",\n" +
                "      \"isMenu\": 1,\n" +
                "      \"parentId\": 18\n" +
                "    }\n" +
                "  ]\n" +
                "}";
    }

    @GetMapping("api/table.json")
    @ResponseBody
    public String table() {
        return "{\n" +
                "  \"code\": 0,\n" +
                "  \"msg\": \"\",\n" +
                "  \"count\": 1000,\n" +
                "  \"data\": [\n" +
                "    {\n" +
                "      \"id\": 10000,\n" +
                "      \"username\": \"user-0\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-0\",\n" +
                "      \"sign\": \"签名-0\",\n" +
                "      \"experience\": 255,\n" +
                "      \"logins\": 24,\n" +
                "      \"wealth\": 82830700,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 57\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10001,\n" +
                "      \"username\": \"user-1\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-1\",\n" +
                "      \"sign\": \"签名-1\",\n" +
                "      \"experience\": 884,\n" +
                "      \"logins\": 58,\n" +
                "      \"wealth\": 64928690,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 27\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10002,\n" +
                "      \"username\": \"user-2\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-2\",\n" +
                "      \"sign\": \"签名-2\",\n" +
                "      \"experience\": 650,\n" +
                "      \"logins\": 77,\n" +
                "      \"wealth\": 6298078,\n" +
                "      \"classify\": \"酱油\",\n" +
                "      \"score\": 31\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10003,\n" +
                "      \"username\": \"user-3\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-3\",\n" +
                "      \"sign\": \"签名-3\",\n" +
                "      \"experience\": 362,\n" +
                "      \"logins\": 157,\n" +
                "      \"wealth\": 37117017,\n" +
                "      \"classify\": \"诗人\",\n" +
                "      \"score\": 68\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10004,\n" +
                "      \"username\": \"user-4\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-4\",\n" +
                "      \"sign\": \"签名-4\",\n" +
                "      \"experience\": 807,\n" +
                "      \"logins\": 51,\n" +
                "      \"wealth\": 76263262,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 6\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10005,\n" +
                "      \"username\": \"user-5\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-5\",\n" +
                "      \"sign\": \"签名-5\",\n" +
                "      \"experience\": 173,\n" +
                "      \"logins\": 68,\n" +
                "      \"wealth\": 60344147,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 87\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10006,\n" +
                "      \"username\": \"user-6\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-6\",\n" +
                "      \"sign\": \"签名-6\",\n" +
                "      \"experience\": 982,\n" +
                "      \"logins\": 37,\n" +
                "      \"wealth\": 57768166,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 34\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10007,\n" +
                "      \"username\": \"user-7\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-7\",\n" +
                "      \"sign\": \"签名-7\",\n" +
                "      \"experience\": 727,\n" +
                "      \"logins\": 150,\n" +
                "      \"wealth\": 82030578,\n" +
                "      \"classify\": \"作家\",\n" +
                "      \"score\": 28\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10008,\n" +
                "      \"username\": \"user-8\",\n" +
                "      \"sex\": \"男\",\n" +
                "      \"city\": \"城市-8\",\n" +
                "      \"sign\": \"签名-8\",\n" +
                "      \"experience\": 951,\n" +
                "      \"logins\": 133,\n" +
                "      \"wealth\": 16503371,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 14\n" +
                "    },\n" +
                "    {\n" +
                "      \"id\": 10009,\n" +
                "      \"username\": \"user-9\",\n" +
                "      \"sex\": \"女\",\n" +
                "      \"city\": \"城市-9\",\n" +
                "      \"sign\": \"签名-9\",\n" +
                "      \"experience\": 484,\n" +
                "      \"logins\": 25,\n" +
                "      \"wealth\": 86801934,\n" +
                "      \"classify\": \"词人\",\n" +
                "      \"score\": 75\n" +
                "    }\n" +
                "  ]\n" +
                "}";
    }

    @GetMapping("api/tableSelect.json")
    @ResponseBody
    public String tableSelect() {
        return "{\n" +
                "    \"code\": 0,\n" +
                "    \"msg\": \"\",\n" +
                "    \"count\": 16,\n" +
                "    \"data\": [\n" +
                "        { \"id\":\"001\", \"username\":\"张玉林\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"002\", \"username\":\"刘晓军\", \"sex\":\"男\" },\n" +
                "        { \"id\":\"003\", \"username\":\"张恒\", \"sex\":\"男\" },\n" +
                "        { \"id\":\"004\", \"username\":\"朱一\", \"sex\":\"男\" },\n" +
                "        { \"id\":\"005\", \"username\":\"刘佳能\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"006\", \"username\":\"晓梅\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"007\", \"username\":\"马冬梅\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"008\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"009\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"010\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"011\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"012\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"013\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"014\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"015\", \"username\":\"刘晓庆\", \"sex\":\"女\" },\n" +
                "        { \"id\":\"016\", \"username\":\"刘晓庆\", \"sex\":\"女\" }\n" +
                "    ]\n" +
                "}";
    }

    @GetMapping("api/upload.json")
    @ResponseBody
    public String upload() {
        return "{\n" +
                "  \"code\": 1,\n" +
                "  \"msg\": \"上传成功\",\n" +
                "  \"data\": {\n" +
                "    \"url\": [\n" +
                "      \"../images/logo.png\",\n" +
                "      \"../images/captcha.jpg\"\n" +
                "    ]\n" +
                "  }\n" +
                "}\n";
    }
}
